<%--
  Created by IntelliJ IDEA.
  User: libaice
  Date: 11/7/2020
  Time: 10:27 PM
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--        文件上传三要素
            1. 提交方式    post
            2. ecctype  multipart/form-data
            3. 表单 文件上传项

--%>

    <form method="post" enctype="multipart/form-data" action="${pageContext.request.contextPath}/upload" >
        <input type="file" name="upload" >
        <br>
        <input type="text" name="name" >
        <input type="text" name="password" >

        <input type="submit" value="文件上传" >
    </form>

    <img src="/upload/08ce2d87d2994dea89858c254d8fa1fe_0102.png">


</body>
</html>
